-- GENERATED SPELL FOR [Cenarion Storm Crow] --


function spell0_22122(pUnit, Event) --@Stormbolt,n/a--
pUnit:FullCastSpellOnTarget(38400,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22122', 17000, 1)
end

function Sorts_22122(pUnit, Event)
local choix_sorts_22122 = math.random(0, 0)
if choix_sorts_22122 == 0 then
pUnit:RegisterEvent('spell0_22122', 1, 1)
end
end

function mob22122_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22122', math.random(1500, 3000), 1)
end

function mob22122_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22122_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22122_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22122, 1, 'mob22122_Action')
RegisterUnitEvent(22122, 2, 'mob22122_Leave')
RegisterUnitEvent(22122, 3, 'mob22122_Kill')
RegisterUnitEvent(22122, 4, 'mob22122_Die')
